<!DOCTYPE html>
<%@page import="com.doeis.manage.bean.Item"%>
<%@page import="java.util.List"%>
<%@page import="com.doeis.common.Constant"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	List<Item> list = (List<Item>)request.getAttribute("list");
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><%=Constant.LOTTERY_PROJECT_TITLE%></title>
<%@include file="/WEB-INF/page/common/import.jsp"%>

<link rel="stylesheet" href="/static/css/item/index.css" />
<style type="text/css">
.container-thumbnails {
	margin-top: 60px;
}

.thumbnails li a {
	color: #888;
	font-weight: bold;
}

.thumbnails li a:hover,.thumbnails li a:focus {
	border-color: #f2f5e9;
	-webkit-box-shadow: none;
	box-shadow: none;
	text-decoration: none;
	background-color: #f2f5e9;
}
</style>
</head>
<body>
	<div class="container-narrow">

		<div class="masthead">
			<div class="btn-group pull-right">
				<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"> <%=user == null?"":user.getUsername() %> <span
					class="caret"></span>
				</a>
				<ul class="dropdown-menu">
					<!-- dropdown menu links -->
					<li><a href="/user/setting">个人设置</a></li>
					<li><a href="/index">网站首页</a></li>
					<li><a href="/user/exist">退出登录</a></li>

				</ul>
			</div>

			<h3 class="muted">ShowDoc</h3>
		</div>

		<hr>

		<div class="container-thumbnails">
			<ul class="thumbnails">
				<%if(list!=null&&list.size()>0){
					for(Item item:list){
				%>
				<li class="span3 text-center"><a class="thumbnail" href="show?item_id=<%=item.getId() %>"
					title="{$item.item_description}">
						<p class="my-item"><%=item.getItem_name() %></p>
				</a></li>
				<%}} %>

				<li class="span3 text-center"><a class="thumbnail" href="/item/add" title="添加一个新项目">
						<p class="my-item">新建项目&nbsp;<i class="icon-plus"></i>
						</p>
				</a></li>
			</ul>
		</div>
	</div>
</body>
</html>